with open(r"a.txt","r") as file:
    list1= file.readlines()
    list2=[]
    sum1 = 0
    # 求和
    for a in list1:
        sum1 += int(a)
        list2.append(int(a))
    print(sum1)
    #求最大值跟最小值的差
    max_num=max(list2)
    min_num=min(list2)
    num=  max_num-min_num   #差
    print(max_num,min_num)


# with open(r"a.txt","r") as file:
#     text= file.read()
#     list1=text.split("\n")  #通过字符串进行切割
#     print(list1)
#
# s="12312"
# s.isalpha()


